package com.jerei.plugin.service.impl;

import com.jerei.plugin.dao.IWcmCommonParamDao;
import com.jerei.plugin.entity.WcmCommonParam;
import com.jerei.plugin.service.IWcmCommonParamService;
import com.jerei.utils.condition.ConditionEntity;
import com.jerei.utils.spring.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by sunfeihu on 2016/10/21.
 */
@Service
public class WcmCommonParamServiceImpl implements IWcmCommonParamService {

    @Autowired
    private IWcmCommonParamDao iWcmCommonParamDao;

    @Override
    public WcmCommonParam save(WcmCommonParam entity) {
        return iWcmCommonParamDao.save(entity);
    }

    @Override
    public int delete(Long id) {
        return iWcmCommonParamDao.delete(id);
    }

    @Override
    public int update(WcmCommonParam entity) {
        return iWcmCommonParamDao.update(entity);
    }

    @Override
    public WcmCommonParam find(Long id) {
        return iWcmCommonParamDao.find(id);
    }


    @Override
    public void save(List<WcmCommonParam> list) {
        iWcmCommonParamDao.save(list);
    }

    @Override
    public void delete(List<Long> ids) {
        iWcmCommonParamDao.delete(ids);
    }

    @Override
    public void update(List<WcmCommonParam> list) {
        iWcmCommonParamDao.update(list);
    }

    @Override
    public PageBean<WcmCommonParam> page(int nowPage, int pageSize, ConditionEntity conditionEntity) {
        return iWcmCommonParamDao.page(nowPage, pageSize, conditionEntity);
    }

    @Override
    public WcmCommonParam findByNo(String no) {
        return iWcmCommonParamDao.findByNo(no);
    }
}
